/*
 * @Author: wangshuixin 2412658453@qq.com
 * @Date: 2024-06-01 15:51:49
 * @LastEditors: wangshuixin 2412658453@qq.com
 * @LastEditTime: 2024-11-05 09:32:02
 * @FilePath: /tspods/nuxt.config.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
// https://nuxt.com/docs/api/configuration/nuxt-config
// import postcssApplyTailwindPlugin from './plugins/postcss-apply-tailwind';

export default defineNuxtConfig({
  ssr: false, // 关闭服务端渲染
  devtools: { enabled: true },
  components: [
    {
      path: '~/components',
      pathPrefix: false,
    },
  ],
  modules: ["@nuxtjs/tailwindcss"],
  css: [
    '@arco-design/web-vue/dist/arco.css'
  ],
  // 注册acro design vue框架的插件
  plugins: [
    '@/plugins/arco.ts',
    '@/plugins/postcss-apply-tailwind.ts'
  ],
  // // postcss自定义插件，解析--at-apply属性
  // build: {
  //   postcss: {
  //     process: {
  //     plugins: {
  //       'postcss-apply-tailwind': {},
  //       // 添加你需要的PostCSS插件
  //       'postcss-import': {},
  //       'postcss-nested': {},
  //       'postcss-preset-env': {
  //         // 插件选项
  //         stage: 1,
  //         features: {
  //           'custom-properties': false,
  //         },
  //       },
  //     },
  //   },
  //   },
  // },
})